/*
 * @Description: 气象监测
 */
import zhreq from "@/api/axios";
// import zhreqtwo from "@/api/axios";
export default {
  /**
   * @description: 获取左侧气象数据项
   * @return {Array}
   */
  getweatherdataleft() {
    return zhreq.get(`v3/iot/dataCollectNew/queryAtmosphereData?organizationNo=${sessionStorage.organizationNo}`, {
      "less": "gl",
      "category": "meteorological",
      "organizationNo": sessionStorage.parentId || sessionStorage.organizationNo
    })
  },
  /**
   * @description: 获取外部气象站数据
   * @return {Array}
   */
  getotherweatherdata() {
    return zhreq.get(`v3/iot/dataCollectNew/queryWeatherData?organizationNo=${sessionStorage.organizationNo}`)

    // return zhreq.post('sensorFacilityMapper/queryByCondition', {
    //   "less": "gl",
    //   "category": "weather",
    //   "organizationNo": sessionStorage.parentId || sessionStorage.organizationNo
    // })
  },
  /**
   * @description: 获取左侧气象数据详细内容
   * @return {Array}
   */
  getweatherdatalefttwo(list) {
    return zhreq.get(`v3/iot/dataCollectNew/queryAtmosphereData?organizationNo=${sessionStorage.organizationNo}`)
  },
  /**
   * @description: 获取左侧折线图数据
   * @return {Array}
   */
  getzhexiandataleft(params) {
    return zhreq.post('v3/iot/dataItem/queryHistory', {
      ...params
    })
  }
}
